package com.ferryman.web;

import com.ferryman.service.TestService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * Created by Administrator on 2017/7/5.
 */
@Controller
public class HomeController {

    @Autowired
    private TestService testService;

    @ApiOperation(value="获取用户列表", notes="")
    @RequestMapping(value = "/",method=RequestMethod.GET)
    public @ResponseBody Object index(){
        return testService.findStuList();
    }

}
